<table>
<colgroup valign="middle">
	<col align="left" />
	<col align="center" />
	<col align="right" width="90" />
	<col align="right" width="60" />
	<col align="right" width="100"/>
	<col align="right" width="55"/>
</colgroup>

<thead>
	<tr>
		<td>Produkt</td>
		<td>&nbsp;</td>
		<td>Cena</td>
		<td>Ilość</td>
		<td>Wartość</td>
		<td>&nbsp;</td>
	</tr>
</thead>

<tbody>
	<?php
		foreach($this->products as $product):
			$id = $product['id'];
	?>
	<tr>
		<td><a href="<?php print $this->url(array('alias' => $product['alias']), 'shop-product')?>"><?php print $this->escape($product['name']);?></a></td>
		<td>
			<?php if (@$product['image']):?>
			<a href="<?php print $this->url(array('alias' => $product['alias']), 'shop-product')?>">
				<img src="/upload/shop/product/thumb/<?php print $this->escape($product['image'])?>" alt="Produkt: <?php print $this->escape($product['name']);?>" /></a>
			<?php endif;?>
		</td>
		<td>
			<?php if (@$product['promotion']):?>
				<del><?php print $this->price(@$product['raw_price'])?></del>
			<?php endif;?>

			<span><?php print $this->price($product['price'])?></span>
			<span class="kx_currency">zł</span>
		</td>
		<td><?php print $this->formText('amount['. $id .']', $product['amount'], array('class' => 'kx_amount'))?></td>
		<td><?php print $this->price($product['totalprice']);?> <span class="kx_currency">zł</span></td>
		<td><a class="ks_action_removeToCart" rel="nofallow" href="<?php print $this->url(array('alias' => $product['alias']),'shop-cart-remove', true)?>"><span>Usuń &raquo;</span></a></td>
	</tr>
	<?php endforeach;?>
</tbody>

<tfoot>
	<tr>
		<td colspan="4" align="right">
			Kwota do zapłaty
		</td>
		<td><b><?php print $this->price($this->totalPrice)?> <span class="kx_currency">zł</span></b></td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2"><a href="<?php print $this->url(array(),'shop-main')?>">&laquo; Kontynuj zakupy</a></td>
		<td colspan="3" align="center"><input type="submit" value="Przelicz koszyk" /></td>
		<td><a class="kx_action_checkout" rel="nofallow" href="<?php print $this->url(array(),'shop-checkout', true)?>" >Kupuję &raquo;</a></td>
	</tr>
</tfoot>

</table>